Home > BrowserDetect > New Browser detection : Web 2.0 HTML Hacks

New Browser detection : Web 2.0 HTML Hacks

New browser detection only with HTML 2.0 without any JavaScript/CSS hacks.

Demo:

Browser detection : HTML 2.0 only (demo)

htmldump.gif

Example

perl -e 'print<<EOF
<img x=` s\x00rc="safari2.gif" ` sr\x00c="ie.gif"
         src\x00="webkit.gif"    src\x0c="opera.gif"
         src="gecko.gif"         src="lynx.gif"   />
EOF'

html20hacks-snapshot.png

Comments:2

Joel 07-10-04 (Thu) 7:08

This is sweet! For all of you nay sayers over on Digg, here is a simple way to use this technique. The style changes between IE and Firefox. I’m sure the same thing could be used to set a different style sheet for each!

TESTING THIS DIV THING

Joel 07-10-04 (Thu) 7:10

Code didn’t submit properly because it was interpreted as HTML:

[div /’’style=”width:100;height:100;background-color:red;border-width:1px;color:white;” /style=”width:200;height:200;background-color:blue;border-width:5px;color:black;”]
TESTING THIS DIV THING
[/div]

Trackback+Pingback:0

TrackBack URL for this entry
http://wafful.org/2007/09/27/new-browser-detection-web-20-html-hacks/trackback/
Listed below are links to weblogs that reference
New Browser detection : Web 2.0 HTML Hacks from wafful.org - Web Security Blog

Home > BrowserDetect > New Browser detection : Web 2.0 HTML Hacks

Feeds

Page Top